feat: trinity-bootstrap-pack v1.1 + kernel UX batch 1#14
Merged
Conversation
Three audited Trinity sessions land together (full audit trail kept in local trinity_v2 retros; public export excludes session/audit state). ## trinity-bootstrap-pack v1.0 + v1.1 — one-command install ```bash # From a local trinity_v2 clone: bash tools/trinity-bootstrap-pack/install.sh ~/code/my-app --project-name my-app # From curl|bash (any machine): curl -fsSL https://raw.githubusercontent.com/postmunnet/trinity-protocol/main/tools/trinity-bootstrap-pack/bootstrap.sh \ | bash -s -- ~/code/my-app --project-name my-app ``` - `install.sh` — bash entry → python core; positional `<target>` or `--target` - `bootstrap.sh` — curl|bash entry; clones/pulls `~/.trinity-kernel` then dispatches - `--with-kernel symlink|copy|none` (default `symlink`): auto-wires `.ai/cli` and `.ai/rituals` from trinity_v2 source into target, copies `.ai/requirements.txt` - Auto-detect 4 modes: greenfield / upgrade-v1 / upgrade-v2 / self (refused without `--allow-self-install`) - Pack contents: minimal `.ai/` skeleton + `CLAUDE.md`/`AGENTS.md`/`GEMINI.md` entrypoint templates (with `{{PROJECT_NAME}}` substitution) + `ai-docs/` - 32 pytest covering detector, installer, kernel_wire, bootstrap_sh, smoke - Receipt: `<target>/.trinity-install-receipt.json` (pack version + kernel-wire info) - README documents three install flavours + flag matrix ## Kernel UX batch 1 — fix the system, don't memorize the gotcha Three repeating frictions resolved at the kernel/wrapper layer: 1. `pyproject.toml` at project root: `[tool.pytest.ini_options]` with `testpaths` makes `python3 -m pytest <path>` work from any cwd. Removes the need to chain `cd` for pytest invocations. 2. `.ai/cli/commands/vvv.py`: `--answers-file` now auto-detects JSON or YAML. Tries JSON first (backwards-compatible); falls back to `yaml.safe_load`. Error message + help text mention both formats explicitly. 3. `.ai/cli/agent` wrapper: `--session-path active` resolves to the kernel's `current_session` pointer (read from `.ai/state/status.json`) at invocation time. Exits 78 with a clear stderr message if status is unreadable — no Python traceback. Plus: new `.ai/cli/agents/README.md` documents the in-house agent set and the `active` keyword. Locally: 1868 → 1883 kernel pytest green; new bootstrap-pack suite added. ## Other docs sync This export also mirrors local docs work that hadn't been published yet: - `docs/specs/01_TOOL_CONTRACT.md` (TH + EN) — substantial spec expansion - `docs/specs/INDEX.md`, `docs/specs/en/INDEX.md` — index updates - `docs/migration/01_CONTEXT_AND_DECISIONS.md`, `03_COMMIT_PLAN.md` - `README.md`, `docs/VERSION_LINEAGE*.md` - `scripts/export_github.sh` — updated scrub rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three audited Trinity sessions land together (full audit trail kept in local trinity_v2 retros; public export excludes session/audit state).
trinity-bootstrap-pack v1.0 + v1.1 — one-command install
install.sh— bash entry → python core; positional<target>or--targetbootstrap.sh— curl|bash entry; clones/pulls~/.trinity-kernelthen dispatches--with-kernel symlink|copy|none(defaultsymlink): auto-wires.ai/cliand.ai/ritualsfrom trinity_v2 source into target, copies.ai/requirements.txt--allow-self-install).ai/skeleton +CLAUDE.md/AGENTS.md/GEMINI.mdentrypoint templates (with{{PROJECT_NAME}}substitution) +ai-docs/<target>/.trinity-install-receipt.json(pack version + kernel-wire info)Kernel UX batch 1 — fix the system, don't memorize the gotcha
Three repeating frictions resolved at the kernel/wrapper layer:
pyproject.tomlat project root:[tool.pytest.ini_options]withtestpathsmakespython3 -m pytest <path>work from any cwd. Removes the need to chaincdfor pytest invocations..ai/cli/commands/vvv.py:--answers-filenow auto-detects JSON or YAML. Tries JSON first (backwards-compatible); falls back toyaml.safe_load. Error message + help text mention both formats explicitly..ai/cli/agentwrapper:--session-path activeresolves to the kernel'scurrent_sessionpointer (read from.ai/state/status.json) at invocation time. Exits 78 with a clear stderr message if status is unreadable — no Python traceback.Plus: new
.ai/cli/agents/README.mddocuments the in-house agent set and theactivekeyword.Locally: 1868 → 1883 kernel pytest green; new bootstrap-pack suite added.
Other docs sync
This export also mirrors local docs work that hadn't been published yet:
docs/specs/01_TOOL_CONTRACT.md(TH + EN) — substantial spec expansiondocs/specs/INDEX.md,docs/specs/en/INDEX.md— index updatesdocs/migration/01_CONTEXT_AND_DECISIONS.md,03_COMMIT_PLAN.mdREADME.md,docs/VERSION_LINEAGE*.mdscripts/export_github.sh— updated scrub rules